//package com.campusnews.controller;
//
//
//import com.campusnews.annotation.LoginToken;
//import com.campusnews.pojo.CommentAgree;
//import com.campusnews.service.CommentAgreeService;
//import com.campusnews.utils.JsonResult;
//import com.campusnews.utils.TokenUtils;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
///**
// * <p>
// *  前端控制器
// * </p>
// *
// * @author lqc
// * @since 2021-10-14
// */
//@RestController
//@RequestMapping("/commentAgree")
//@Api(tags={"评论点赞信息API"})
//public class CommentAgreeController {
//
//    @Autowired
//    private CommentAgreeService commentAgreeService;
//
//    @LoginToken
//    @ApiOperation(value = "添加评论点赞信息", notes = "添加评论点赞信息")
//    @RequestMapping(value = "/insertCommentAgree" ,method = RequestMethod.POST)
//    public JsonResult insertCommentAgree(@RequestBody CommentAgree CommentAgree) {
//        return commentAgreeService.insertCommentAgree(CommentAgree);
//    }
//
//    @LoginToken
//    @ApiOperation(value = "删除一级评论点赞信息", notes = "删除评论点赞信息")
//    @RequestMapping(value = "/deleteCommentAgreeFromFirstComment/{firstId}/{userId}" ,method = RequestMethod.GET)
//    public JsonResult deleteCommentAgreeFromFirstComment(@PathVariable("firstId") int firstId,@PathVariable("userId")int userId) {
//        return commentAgreeService.deleteCommentAgreeFromFirstComment(firstId,userId);
//    }
//
//    @LoginToken
//    @ApiOperation(value = "删除二级评论点赞信息", notes = "删除评论点赞信息")
//    @RequestMapping(value = "/deleteCommentAgreeFromSecondComment/{secondId}/{userId}" ,method = RequestMethod.GET)
//    public JsonResult deleteCommentAgreeFromSecondComment(@PathVariable("secondId") int secondId,@PathVariable("userId")int userId) {
//        return commentAgreeService.deleteCommentAgreeFromSecondComment(secondId,userId);
//    }
//}
//
